<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
</head>
<body>
<table class="ui celled attached table" style="margin-top: 40px !important;">
    <thead>
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>密码</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="user : ${page.list}">
        <td th:text="${user.id}">James</td>
        <td th:text="${user.name}">24</td>
        <td th:text="${user.pwd}">Engineer</td>
        <td>
            <a th:href="@{/edit/{id}(id=${user.id})}" class="ui button mini pink">编辑</a>
            <a th:href="@{/delUserById/{id}(id=${user.id})}" class="ui button mini teal">删除</a>
        </td>
    </tr>
    </tbody>
</table>

</body>
</html>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
